 const router = require('express').Router()
 module.exports = router
 const {userlogin,getuserinfo,addtoUser,delhome}= require('../userClass/rrouterClass.js')
 // api文档注解,请勿删除
 /**
  *
  * @api {post} /v1/user/login 登录
  * @apiVersion 1.0.0
  * @apiName 登录
  * @apiGroup UE
  *
  * @apiHeader {String} token 用户授权token
  * @apiParam {String} uname 登录账号
  * @apiParam {String} password 登录密码
  *
  * @apiSuccess {Number} code 状态码,0失败,1成功
  * @apiSuccess {String} mas 信息
  * @apiSuccess {Array} data 数据 {token:'',type:'1为管理员2为用户'}
  *
  * @apiSuccessExample Success-Response:
  *     HTTP/1.1 200 OK
 *	{
 *		"code": 1,
 *		"msg": "success",
 *		"data": {
 *			"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmFtZSI6InhpYW9taW5nIiwicGFzc3dvcmQiOiIxMjM0IiwiaWF0IjoxNjM4MDA1NjIzfQ.2EjSr4Q51M1K_NbL4cv7bWoEfFqp1sjlDYrZWqmf9iI",
			"type":1
 *		}
 *	}
  *
  * @apiUse RkNotFoundException
  *
  */
 // 登录
 router.post('/login',(req,res,neth)=>new userlogin(req,res,neth))

 // 获取业主信息列表
 router.get('/getownerinfo',(req,res,neth)=> new getuserinfo(req,res,neth))
// 添加业主
 router.post('/addtoUser',(req,res,neth)=>new addtoUser(req,res,neth))
 // 删除业主
 router.post('/delete-yz',(req,res,neth)=>new delhome(req,res,neth))